# Contributor: Dmitry Zakharchenko <dmitz@disroot.org>
# Maintainer: Dmitry Zakharchenko <dmitz@disroot.org>
pkgname=py3-dogpile.cache
_pkgname=dogpile.cache
pkgver=1.2.2
pkgrel=1
pkgdesc="Caching front-end based on the Dogpile lock"
url="https://github.com/sqlalchemy/dogpile.cache"
arch="noarch"
license="BSD-3-Clause"
depends="python3 py3-decorator"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-pbr py3-mako py3-redis py3-stevedore"
subpackages="$pkgname-pyc"
source="https://pypi.io/packages/source/d/dogpile.cache/dogpile.cache-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
23b078b79e4b1f87c8d397d35b772f0b5fee66a0e452de06e7644ecb1ef577ae1629307a0e32fa62f49d536f95fb62fe70ededeb43647fa0c2e0baf896261931  dogpile.cache-1.2.2.tar.gz
"
